package class1;

public class Member {//object子类之会员类
    private String name;
    private int no;
    private int age;
    public Member(String name,int no,int age){
        this.name=name;
        this.no=no;
        this.age=age;
    }
    public String getName(){
        return name;
    }
    public void print(){
        System.out.println("No."+no+":"+name+"("+age+"岁)");
    }
}
